package com.ky.tms.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author chengkaimao
 * @since 2020-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tms_oil_rechange")
public class TmsOilRechange implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 冲值时间
     */
    private LocalDateTime rechangeDate;

    /**
     * 冲值金额
     */
    private BigDecimal rechangeMoney;

    /**
     * 油卡编号
     */
    private String oilNo;

    /**
     * 冲值前余额
     */
    private BigDecimal oilBalance;

    /**
     * 是否有效
     */
    private Integer isValid;

    /**
     * 是否锁定
     */
    private Integer isLock;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    private String updateUser;

    @TableField(exist = false)
    private List<TmsCarOil> tmsCarOils;

    @TableField(exist = false)
    private List<String> createTimeArray;

}
